var express = require('express');
var router = express.Router();


 
//后台首页
router.get('/top', function (req, res, next) {
  //从session中获取管理员名称
  const admin_name = req.signedCookies.admin_name ||  req.session.admin_name;
  //console.log(admin_name);
  res.render('index/top.html',{admin_name})
});
router.get('/left', function (req, res, next) {
  res.render('index/left.html')
});
router.get('/index', function(req, res, next) {
    res.render('index/admin.html')
});


module.exports = router;
